package com.sensePlusVR.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class PlayVideoParam implements Parcelable{
	
	//id
	private int videoId;
	
	//标题
	private String title;
	
	//播放URL
	private String playUrl;
	
	//视频类型
	private int videoType;
	
	
	public PlayVideoParam(){
		
	}
	
	public PlayVideoParam(int videoId, String title, String playUrl, int videoType) {
		super();
		this.videoId = videoId;
		this.title = title;
		this.playUrl = playUrl;
		this.videoType = videoType;
	}

	public int getVideoId() {
		return videoId;
	}

	public void setVideoId(int videoId) {
		this.videoId = videoId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPlayUrl() {
		return playUrl;
	}

	public void setPlayUrl(String playUrl) {
		this.playUrl = playUrl;
	}

	public int getVideoType() {
		return videoType;
	}

	public void setVideoType(int videoType) {
		this.videoType = videoType;
	}

	@Override
	public String toString() {
		return "PlayVideoParam [videoId=" + videoId + ", title=" + title + ", playUrl="
				+ playUrl + ", videoType=" + videoType + "]";
	}

	public static final Parcelable.Creator<PlayVideoParam> CREATOR = new Creator<PlayVideoParam>() {

		@Override
		public PlayVideoParam createFromParcel(Parcel source) {
			
			PlayVideoParam playVideoParam = new PlayVideoParam();
			
			playVideoParam.videoId = source.readInt();
			
			playVideoParam.title = source.readString();
			
			playVideoParam.playUrl = source.readString();
			
			playVideoParam.videoType = source.readInt();
			
			
			return playVideoParam;
		}

		@Override
		public PlayVideoParam[] newArray(int size) {
			// TODO Auto-generated method stub
			return new PlayVideoParam[size];
			
			
		}
		
		
	};
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		
		dest.writeInt(videoId);
		
		dest.writeString(title);
		
		dest.writeString(playUrl);
		
		dest.writeInt(videoType);
		
	}





}
